﻿using System.Collections.Generic;
using System.ServiceModel;
using SellAndBuy.Application.Query.DTOs;

namespace SellAndBuy.DistributedServices
{
    /// <summary>
    /// Ad Query Service
    /// </summary>
    [ServiceContract]
    public interface IAdQueryWebService
    {
        [OperationContract]
        IList<AdDTO> FindAds();

        [OperationContract]
        IList<AdDTO> FindAds(int pageIndex, int pageCount);

        [OperationContract]
        AdDTO FindAdByID(int id);
    }
}
